package com.a214.yxz.yuejian013.Service;

import com.a214.yxz.yuejian013.JavaBean.MasterQue;
import com.a214.yxz.yuejian013.JavaBean.master;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by hp-pc on 2017/10/12.
 */

public interface MasterService {

    @GET("lists/mod/master")
    Call<List<master>> getMaster(
            @Query("SessionID") String sessionId,
            @Query("page") int page
    );
    @GET("get/mod/master")
    Call<master> getMasterById(
            @Query("id") String id
    );
    @GET("lists/mod/masterfaq")
    Call<List<MasterQue>> getMasterQue(
            @Query("master_id") String id
    );
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> userCollectMaster(
            @Path("SessionID") String SessionID,
            @Path("userid") String userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> isCollected(
            @Path("fan_id") String fan_id,
            @Path("userid") String userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );
}
